// // token
// const GEEK_TOKEN = 'geek_token'
// // 设置本地存储
// export const setToken =(token)=> localStorage.setItem(GEEK_TOKEN, token)
// // 获取本地存储
// export const getToken =()=> localStorage.getItem(GEEK_TOKEN)
// // 移除本地存储
// export const removeToken =()=> localStorage.removeItem(GEEK_TOKEN)
// // 是否登录
// export const isLogin =()=> !!getToken()

const GEEK_TOKEN = 'geek_token'

export const setToken = (token) => localStorage.setItem(GEEK_TOKEN,token)

export const getToken  =  () => localStorage.getItem(GEEK_TOKEN)

export const removeToken  = () => localStorage.removeItem(GEEK_TOKEN)

export const isLogin = () =>  !!getToken()  // 函数调用才能拿到最新布尔值